import request from '@/utils/request'

// 注册请求
export const register = ({ username, password, repassword }) => {
  return request.post('/api/reg', {
    data: {
      username,
      password,
      repassword
    }
  })
}
// 登录请求
export const login = ({ username, password }) => {
  return request.post('/api/login', {
    data: {
      username,
      password
    }
  })
}
